<?php

namespace App\Http\Requests\Admin\Panx\StaffManage;

use App\Http\Requests\ApiRequest;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

/**
 * @property string is_deleted
 */
class PanxStaffOperateRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'is_deleted' => ['required', 'int', Rule::in([0, 1])],
        ];
    }

    /**
     * @return array
     */
//    public function messages()
//    {
//        return [
//            'is_deleted.*' => '管理员的状态必须是0或者1',
//        ];
//    }
}
